package backend;

import java.util.ArrayList;

/**
 *
 * @author Khazidhea
 */
public class Server {

    private String name, ip;
    private ArrayList<String> logs;

    public Server() {
    }

    public Server(String name, String ip, ArrayList<String> logs) {
        this.name = name;
        this.ip = ip;
        this.logs = logs;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param ip the ip to set
     */
    public void setIp(String ip) {
        this.ip = ip;
    }

    /**
     * @return the ip
     */
    public String getIp() {
        return ip;
    }

    /**
     * @param logs the logs to set
     */
    public void setLogs(ArrayList<String> logs) {
        this.logs = logs;
    }

    /**
     * @return the logs
     */
    public ArrayList<String> getLogs() {
        return logs;
    }

    public String toString() {
        return name + " - " + ip;
    }
}
